package com.huangwei.service.impl;

import com.huangwei.dao.CarAndLicenseDao;
import com.huangwei.model.CarAndLicense;
import com.huangwei.service.CarAndLicenseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CarAndLicenseServiceImpl implements CarAndLicenseService {
    @Resource
    CarAndLicenseDao carAndLicenseDao;

    @Override
    public CarAndLicense getOnePermission(int carId, int driverLicenseId) {
        try {
            return carAndLicenseDao.queryOne(carId, driverLicenseId);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
